package cn.tedu.submarine;

import javax.swing.*;

//水雷
public class Mine extends SeaObject{


   public Mine(int x, int y){
        super(11,11,x,y,1);

    }
    public void step(){
        y -= speed;
    }
    public ImageIcon getImage(){
        if (isLive()){
            return Images.mine;
        }else {
            return null;
        }
    }
    public boolean isOutOfBounds(){//检测深水炸弹越界
        return this.y<=150-this.height;
    }


}
